package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 批改主表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_endorsement")
@ApiModel(value = "CgnciEndorsementDO对象", description = "批改主表")
public class CgnciEndorsementDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("批单id")
    @TableId(value = "endorsement_id", type = IdType.ASSIGN_ID)
    private Long endorsementId;

    @ApiModelProperty("批改对应的业务id")
    private Long businessId;

    @ApiModelProperty("批改对应的业务编号")
    private String businessNo;

    @ApiModelProperty("批改对应的流程编号")
    private String formNo;

    @ApiModelProperty("批改号")
    private String endorsementNo;

    @ApiModelProperty("业务批改类型(1-保单,2-分入合约,3-分出合约),码表值:businessInsuranceType")
    private String businessType;

    @ApiModelProperty("批改类型")
    private String endorsementType;

    @ApiModelProperty("批改原因(1-客户申请,2-内部操作,3-提供资料错误,4-其他),码表值:endorsementReason")
    private String endorsementReason;

    @ApiModelProperty("批改生效日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private Date effectiveDate;

    @ApiModelProperty("批改申请日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT-8")
    private Date applyDate;

    @ApiModelProperty("批改审批日期")
    private Date approveDate;

    @ApiModelProperty("批改审批人")
    private String approver;

    @ApiModelProperty("批改后版本号")
    private Integer version;

    @ApiModelProperty("批改前版本号")
    private Integer previousVersion;

    @ApiModelProperty("批改内容说明")
    private String endorsementContent;

    @ApiModelProperty("价格影响说明")
    private String priceImpact;

    @ApiModelProperty("调整结算方式")
    private String settlementMethod;

    @ApiModelProperty("业务影响说明")
    private String businessImpact;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
